﻿namespace ACCOUNTING.LVY.Business
{
    using ACCOUNTING;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Data;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    public class GLDinhNghiaPhanBo
    {
        private double mConLai = 0.0;
        private double mDaPhanBo = 0.0;
        private string mDienGiai = "";
        private string mKhoa = "";
        private string mKhoaBoPhanCo = "";
        private string mKhoaBoPhanNo = "";
        private string mKhoaChungTu = "";
        private string mKhoaDonVi = "";
        private string mKhoaHopDongCo = "";
        private string mKhoaHopDongNo = "";
        private string mKhoaSanPhamCo = "";
        private string mKhoaSanPhamNo = "";
        private string mKhoaTaiKhoan = "";
        private string mKhoaTaiKhoanNo = "";
        private string mLoaiTien = "";
        private string mNgayChungTu = "";
        private int mNgungPhanBo = 0;
        private string mSoChungTu = "";
        private double mSoPhatSinh = 0.0;
        private int mSoThangPhanBo = 0;
        private string mThangBatDauPhanBo = "";
        private double mTriGiaPhanBo = 0.0;
        private double mTyGia = 0.0;

        public bool DaPhanBoChiPhi(string pKhoa)
        {
            string commandText = "SELECT TOP 1 KhoaChungTuPhanBo FROM GL_QuaTrinhPhanBoChiPhiTraTruoc WHERE KhoaChungTuPhanBo = '" + pKhoa + "'";
            return (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(DBHelper.ExecuteScalar(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0])), "", modGeneral.TypeOfValue.Nothing).ToString().Trim().Trim() != "");
        }

        public bool DelData(string pKhoa)
        {
            bool flag=false;
            try
            {
                string commandText = "DELETE GL_DinhNghiaPhanBoChiPhiTraTruoc WHERE Khoa = '" + pKhoa + "'";
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public DataTable GetDataPhanBo(string StrNamThang, string strKhoaDonVi)
        {
            DataTable table;
            try
            {
                string commandText = " SELECT TOP 1 NamThang FROM GL_QuaTrinhPhanBoChiPhiTraTruoc WHERE NamThang = '" + StrNamThang.Trim() + "'";
                if (Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(DBHelper.ExecuteScalar(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0])), "", modGeneral.TypeOfValue.Nothing)).Trim() != "")
                {
                    commandText = " SELECT PB.KhoaChungTuPhanBo as Khoa, PB.KhoaTaiKhoanCo, TKC.SoTaiKhoan as SoTaiKhoanCo, DN.SoChungTu, dbo.Char2Date(DN.NgayChungTu) as Ngay,  PB.SoPhatSinh, PB.DaPhanBo, PB.SoPhanBo, PB.SoConLai, PB.KhoaTaiKhoanNo, TKN.SoTaiKhoan as SoTaiKhoanNo,  PB.KhoaBoPhanNo, BPN.Ten" + modGeneral.H_LANGUAGE + " as BoPhanNo, PB.KhoaSanPhamNo, SPN.Ten" + modGeneral.H_LANGUAGE + " as SanPhamNo, PB.KhoaHopDongNo, HDN.Ten" + modGeneral.H_LANGUAGE + " as  HopDongNo, PB.KhoaBoPhanCo, BPC.Ten" + modGeneral.H_LANGUAGE + " as BoPhanCo, PB.KhoaSanPhamCo, SPC.Ten" + modGeneral.H_LANGUAGE + " as SanPhamCo, PB.KhoaHopDongCo, HDC.Ten" + modGeneral.H_LANGUAGE + " as HopDongCo FROM GL_QuaTrinhPhanBoChiPhiTraTruoc PB  LEFT JOIN GL_DinhNghiaPhanBoChiPhiTraTruoc DN ON PB.KhoaChungTuPhanBo = DN.Khoa  LEFT JOIN DM_TaiKhoan TKN on PB.KhoaTaiKhoanNo = TKN.Khoa  LEFT JOIN DM_BoPhan BPN on PB.KhoaBoPhanNo = BPN.Khoa  LEFT JOIN DM_SanPham SPN on PB.KhoaBoPhanNo = SPN.Khoa  LEFT JOIN DM_HopDong HDN on PB.KhoaHopDongNo = HDN.Khoa  LEFT JOIN DM_TaiKhoan TKC on PB.KhoaTaiKhoanCo = TKC.Khoa  LEFT JOIN DM_BoPhan BPC on PB.KhoaBoPhanCo = BPC.Khoa  LEFT JOIN DM_SanPham SPC on PB.KhoaBoPhanCo = SPC.Khoa  LEFT JOIN DM_HopDong HDC on PB.KhoaHopDongCo = HDC.Khoa  WHERE PB.NamThang = '" + StrNamThang.Trim() + "' AND PB.KhoaDonVi = '" + strKhoaDonVi.Trim() + "'";
                }
                else
                {
                    commandText = " SELECT PB.Khoa Khoa, PB.KhoaTaiKhoan as KhoaTaiKhoanCo, TKC.SoTaiKhoan as SoTaiKhoanCo, PB.SoChungTu, dbo.Char2Date(PB.NgayChungTu) as Ngay,  PB.SoPhatSinh, PB.DaPhanBo, PB.TriGiaPhanBo as SoPhanBo, PB.ConLai as SoConLai, PB.KhoaTaiKhoanNo, TKN.SoTaiKhoan as SoTaiKhoanNo,  PB.KhoaBoPhanNo, BPN.Ten" + modGeneral.H_LANGUAGE + " as BoPhanNo, PB.KhoaSanPhamNo, SPN.Ten" + modGeneral.H_LANGUAGE + " as SanPhamNo, PB.KhoaHopDongNo, HDN.SoHopDong as  HopDongNo, PB.KhoaBoPhanCo, BPC.Ten" + modGeneral.H_LANGUAGE + " as BoPhanCo, PB.KhoaSanPhamCo, SPC.Ten" + modGeneral.H_LANGUAGE + " as SanPhamCo, PB.KhoaHopDongCo, HDC.SoHopDong as HopDongCo FROM GL_DinhNghiaPhanBoChiPhiTraTruoc PB  LEFT JOIN DM_TaiKhoan TKN on PB.KhoaTaiKhoanNo = TKN.Khoa  LEFT JOIN DM_DonViBoPhan BPN on PB.KhoaBoPhanNo = BPN.Khoa  LEFT JOIN DM_SanPhamCongViec SPN on PB.KhoaBoPhanNo = SPN.Khoa  LEFT JOIN DM_HopDong HDN on PB.KhoaHopDongNo = HDN.Khoa  LEFT JOIN DM_TaiKhoan TKC on PB.KhoaTaiKhoan = TKC.Khoa  LEFT JOIN DM_DonViBoPhan BPC on PB.KhoaBoPhanCo = BPC.Khoa  LEFT JOIN DM_SanPhamCongViec SPC on PB.KhoaBoPhanCo = SPC.Khoa  LEFT JOIN DM_HopDong HDC on PB.KhoaHopDongCo = HDC.Khoa  WHERE PB.ConLai > 0 and PB.ThangBatDauPhanBo <= '" + StrNamThang + "'";
                }
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetListPhatSinh(string strTuNgay, string strDenNgay, string strKhoaDonVi, int intHienThi)
        {
            DataTable table;
            string commandText = "";
            try
            {
                switch (intHienThi)
                {
                    case 0:
                        commandText = "SELECT  CP.Khoa, CP.KhoaChungTu, CP.KhoaTaiKhoan As KhoaTaiKhoanNo, TK.SoTaiKhoan , dbo.Char2Date(CP.NgayChungTu) As Ngay, CP.SoChungTu,  CP.SoPhatSinh, CP.DaPhanBo, CP.DienGiai, CP.KhoaBoPhanNo, CP.KhoaSanPhamNo, CP.KhoaHopDongNo  FROM GL_DinhNghiaPhanBoChiPhiTraTruoc CP LEFT JOIN DM_TaiKhoan TK ON CP.KhoaTaiKhoan = TK.Khoa  WHERE DaPhanBo < SoPhatSinh And NgungPhanBo = 0 ";
                        break;

                    case 1:
                        commandText = "SELECT  CP.Khoa, CP.KhoaChungTu, CP.KhoaTaiKhoan As KhoaTaiKhoanNo, TK.SoTaiKhoan, dbo.Char2Date(CP.NgayChungTu) As Ngay, CP.SoChungTu,  CP.SoPhatSinh, CP.DaPhanBo, CP.DienGiai, CP.KhoaBoPhanNo, CP.KhoaSanPhamNo, CP.KhoaHopDongNo  FROM GL_DinhNghiaPhanBoChiPhiTraTruoc CP LEFT JOIN DM_TaiKhoan TK ON CP.KhoaTaiKhoan = TK.Khoa  WHERE DaPhanBo = SoPhatSinh ";
                        break;

                    case 2:
                        commandText = "SELECT  CP.Khoa, CP.KhoaChungTu, CP.KhoaTaiKhoan As KhoaTaiKhoanNo, TK.SoTaiKhoan, dbo.Char2Date(CP.NgayChungTu) As Ngay, CP.SoChungTu,  CP.SoPhatSinh, CP.DaPhanBo, CP.DienGiai, CP.KhoaBoPhanNo, CP.KhoaSanPhamNo, CP.KhoaHopDongNo  FROM GL_DinhNghiaPhanBoChiPhiTraTruoc CP LEFT JOIN DM_TaiKhoan TK ON CP.KhoaTaiKhoan = TK.Khoa  WHERE DaPhanBo < SoPhatSinh And NgungPhanBo = 1";
                        break;

                    case 3:
                        commandText = "SELECT PB.Khoa, NK.KhoaChungTu, NK.KhoaTaiKhoanNo, TK.SoTaiKhoan, dbo.Char2Date(NK.NgayChungTu) as Ngay, NK.SoChungTu, NK.SoPhatSinh,  IsNull(PB.DaPhanBo,0) as DaPhanBo, NK.DienGiai, NK.KhoaBoPhanNo, NK.KhoaSanPhamNo, NK.KhoaHopDongNo  FROM GL_NhatKyChungTu NK left join GL_DinhNghiaPhanBoChiPhiTraTruoc PB on  NK.KhoaChungTu = PB.KhoaChungTu  and NK.KhoaTaiKhoanNo = PB.KhoaTaiKhoan and RTRIM(NK.DienGiai) = RTRIM(PB.DienGiai) LEFT JOIN DM_TaiKhoan TK on NK.KhoaTaiKhoanNo = TK.Khoa  WHERE RTRIM(IsNull(PB.Khoa,'')) = '' AND NK.KhoaDonVi = '" + strKhoaDonVi.Trim() + "' and (NK.NgayChungTu between '" + strTuNgay + "' and '" + strDenNgay + "') And NK.KhoaTaiKhoanNo in (SELECT Khoa FROM DM_TaiKhoan Where left(SoTaiKhoan,3) in (SELECT RTRIM(SoTaiKhoan) FROM GL_TaiKhoanChiPhiTraTruoc))";
                        break;
                }
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public bool Load(string pKhoa)
        {
            bool flag=false;
            try
            {
                string commandText = "SELECT * FROM GL_DinhNghiaPhanBoChiPhiTraTruoc WHERE Khoa = '" + pKhoa + "'";
                IDataReader dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    this.mKhoa = Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                    this.mKhoaTaiKhoan = Conversions.ToString(modGeneral.GetValue(dataReader, 1, modGeneral.typeOfColumn.GetString));
                    this.mKhoaChungTu = Conversions.ToString(modGeneral.GetValue(dataReader, 2, modGeneral.typeOfColumn.GetString));
                    this.mSoChungTu = Conversions.ToString(modGeneral.GetValue(dataReader, 3, modGeneral.typeOfColumn.GetString));
                    this.mNgayChungTu = Conversions.ToString(modGeneral.GetValue(dataReader, 4, modGeneral.typeOfColumn.GetString));
                    this.mDienGiai = Conversions.ToString(modGeneral.GetValue(dataReader, 5, modGeneral.typeOfColumn.GetString));
                    this.mLoaiTien = Conversions.ToString(modGeneral.GetValue(dataReader, 6, modGeneral.typeOfColumn.GetString));
                    this.mTyGia = Conversions.ToDouble(modGeneral.GetValue(dataReader, 7, modGeneral.typeOfColumn.GetDecimal));
                    this.mSoPhatSinh = Conversions.ToDouble(modGeneral.GetValue(dataReader, 8, modGeneral.typeOfColumn.GetDecimal));
                    this.mDaPhanBo = Conversions.ToDouble(modGeneral.GetValue(dataReader, 9, modGeneral.typeOfColumn.GetDecimal));
                    this.mConLai = Conversions.ToDouble(modGeneral.GetValue(dataReader, 10, modGeneral.typeOfColumn.GetDecimal));
                    this.mTriGiaPhanBo = Conversions.ToDouble(modGeneral.GetValue(dataReader, 11, modGeneral.typeOfColumn.GetDecimal));
                    this.mKhoaTaiKhoanNo = Conversions.ToString(modGeneral.GetValue(dataReader, 12, modGeneral.typeOfColumn.GetString));
                    this.mKhoaBoPhanNo = Conversions.ToString(modGeneral.GetValue(dataReader, 13, modGeneral.typeOfColumn.GetString));
                    this.mKhoaSanPhamNo = Conversions.ToString(modGeneral.GetValue(dataReader, 14, modGeneral.typeOfColumn.GetString));
                    this.mKhoaHopDongNo = Conversions.ToString(modGeneral.GetValue(dataReader, 15, modGeneral.typeOfColumn.GetString));
                    this.mKhoaBoPhanCo = Conversions.ToString(modGeneral.GetValue(dataReader, 0x10, modGeneral.typeOfColumn.GetString));
                    this.mKhoaSanPhamCo = Conversions.ToString(modGeneral.GetValue(dataReader, 0x11, modGeneral.typeOfColumn.GetString));
                    this.mKhoaHopDongCo = Conversions.ToString(modGeneral.GetValue(dataReader, 0x12, modGeneral.typeOfColumn.GetString));
                    this.mThangBatDauPhanBo = Conversions.ToString(modGeneral.GetValue(dataReader, 0x13, modGeneral.typeOfColumn.GetString));
                    this.mSoThangPhanBo = Conversions.ToInteger(modGeneral.GetValue(dataReader, 20, modGeneral.typeOfColumn.GetInt32));
                    this.mKhoaDonVi = Conversions.ToString(modGeneral.GetValue(dataReader, 0x15, modGeneral.typeOfColumn.GetString));
                    this.mNgungPhanBo = Conversions.ToInteger(modGeneral.GetValue(dataReader, 0x16, modGeneral.typeOfColumn.GetInt32));
                }
                dataReader.Close();
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool Ngung(string pKhoa)
        {
            bool flag=false;
            try
            {
                string commandText = "UPDATE GL_DinhNghiaPhanBoChiPhiTraTruoc SET NgungPhanBo = 1 WHERE Khoa = '" + pKhoa + "'";
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool Save()
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[0x18];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@Khoa", DbType.Int64, ParameterDirection.Input, this.mKhoa);
                commandParameters[1] = DBHelper.createParameter("@KhoaTaiKhoan", DbType.Int64, ParameterDirection.Input, this.mKhoaTaiKhoan);
                commandParameters[2] = DBHelper.createParameter("@KhoaChungTu", DbType.Int64, ParameterDirection.Input, this.mKhoaChungTu);
                commandParameters[3] = DBHelper.createParameter("@SoChungTu", DbType.Int64, ParameterDirection.Input, this.mSoChungTu);
                commandParameters[4] = DBHelper.createParameter("@NgayChungTu", DbType.Int64, ParameterDirection.Input, this.mNgayChungTu);
                commandParameters[5] = DBHelper.createParameter("@DienGiai", DbType.Int64, ParameterDirection.Input, this.mDienGiai);
                commandParameters[6] = DBHelper.createParameter("@LoaiTien", DbType.Int64, ParameterDirection.Input, this.mLoaiTien);
                commandParameters[7] = DBHelper.createParameter("@TyGia", DbType.Date, ParameterDirection.Input, this.mTyGia);
                commandParameters[8] = DBHelper.createParameter("@SoPhatSinh", DbType.Date, ParameterDirection.Input, this.mSoPhatSinh);
                commandParameters[9] = DBHelper.createParameter("@DaPhanBo", DbType.Date, ParameterDirection.Input, this.mDaPhanBo);
                commandParameters[10] = DBHelper.createParameter("@ConLai", DbType.Date, ParameterDirection.Input, this.mConLai);
                commandParameters[11] = DBHelper.createParameter("@TriGiaPhanBo", DbType.Date, ParameterDirection.Input, this.mTriGiaPhanBo);
                commandParameters[12] = DBHelper.createParameter("@KhoaTaiKhoanNo", DbType.Int64, ParameterDirection.Input, this.mKhoaTaiKhoanNo);
                commandParameters[13] = DBHelper.createParameter("@KhoaBoPhanNo", DbType.Int64, ParameterDirection.Input, this.mKhoaBoPhanNo);
                commandParameters[14] = DBHelper.createParameter("@KhoaSanPhamNo", DbType.Int64, ParameterDirection.Input, this.mKhoaSanPhamNo);
                commandParameters[15] = DBHelper.createParameter("@KhoaHopDongNo", DbType.Int64, ParameterDirection.Input, this.mKhoaHopDongNo);
                commandParameters[0x10] = DBHelper.createParameter("@KhoaBoPhanCo", DbType.Int64, ParameterDirection.Input, this.mKhoaBoPhanCo);
                commandParameters[0x11] = DBHelper.createParameter("@KhoaSanPhamCo", DbType.Int64, ParameterDirection.Input, this.mKhoaSanPhamCo);
                commandParameters[0x12] = DBHelper.createParameter("@KhoaHopDongCo", DbType.Int64, ParameterDirection.Input, this.mKhoaHopDongCo);
                commandParameters[0x13] = DBHelper.createParameter("@ThangBatDauPhanBo", DbType.Int64, ParameterDirection.Input, this.mThangBatDauPhanBo);
                commandParameters[20] = DBHelper.createParameter("@SoThangPhanBo", DbType.Double, ParameterDirection.Input, this.mSoThangPhanBo);
                commandParameters[0x15] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, this.mKhoaDonVi);
                commandParameters[0x16] = DBHelper.createParameter("@NgungPhanBo", DbType.Double, ParameterDirection.Input, this.mNgungPhanBo);
                commandParameters[0x17] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                int num = DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "GL_sp_ChiPhiTraTruoc", commandParameters);
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(commandParameters[0x17].Value, 0, false))
                {
                    return true;
                }
                flag = false;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public double ConLai
        {
            get
            {
                return this.mConLai;
            }
            set
            {
                this.mConLai = value;
            }
        }

        public double DaPhanBo
        {
            get
            {
                return this.mDaPhanBo;
            }
            set
            {
                this.mDaPhanBo = value;
            }
        }

        public string DienGiai
        {
            get
            {
                return this.mDienGiai;
            }
            set
            {
                this.mDienGiai = value;
            }
        }

        public string Khoa
        {
            get
            {
                return this.mKhoa;
            }
            set
            {
                this.mKhoa = value;
            }
        }

        public string KhoaBoPhanCo
        {
            get
            {
                return this.mKhoaBoPhanCo;
            }
            set
            {
                this.mKhoaBoPhanCo = value;
            }
        }

        public string KhoaBoPhanNo
        {
            get
            {
                return this.mKhoaBoPhanNo;
            }
            set
            {
                this.mKhoaBoPhanNo = value;
            }
        }

        public string KhoaChungTu
        {
            get
            {
                return this.mKhoaChungTu;
            }
            set
            {
                this.mKhoaChungTu = value;
            }
        }

        public string KhoaDonVi
        {
            get
            {
                return this.mKhoaDonVi;
            }
            set
            {
                this.mKhoaDonVi = value;
            }
        }

        public string KhoaHopDongCo
        {
            get
            {
                return this.mKhoaHopDongCo;
            }
            set
            {
                this.mKhoaHopDongCo = value;
            }
        }

        public string KhoaHopDongNo
        {
            get
            {
                return this.mKhoaHopDongNo;
            }
            set
            {
                this.mKhoaHopDongNo = value;
            }
        }

        public string KhoaSanPhamCo
        {
            get
            {
                return this.mKhoaSanPhamCo;
            }
            set
            {
                this.mKhoaSanPhamCo = value;
            }
        }

        public string KhoaSanPhamNo
        {
            get
            {
                return this.mKhoaSanPhamNo;
            }
            set
            {
                this.mKhoaSanPhamNo = value;
            }
        }

        public string KhoaTaiKhoan
        {
            get
            {
                return this.mKhoaTaiKhoan;
            }
            set
            {
                this.mKhoaTaiKhoan = value;
            }
        }

        public string KhoaTaiKhoanNo
        {
            get
            {
                return this.mKhoaTaiKhoanNo;
            }
            set
            {
                this.mKhoaTaiKhoanNo = value;
            }
        }

        public string LoaiTien
        {
            get
            {
                return this.mLoaiTien;
            }
            set
            {
                this.mLoaiTien = value;
            }
        }

        public string NgayChungTu
        {
            get
            {
                return this.mNgayChungTu;
            }
            set
            {
                this.mNgayChungTu = value;
            }
        }

        public int NgungPhanBo
        {
            get
            {
                return this.mNgungPhanBo;
            }
            set
            {
                this.mNgungPhanBo = 0;
            }
        }

        public string SoChungTu
        {
            get
            {
                return this.mSoChungTu;
            }
            set
            {
                this.mSoChungTu = value;
            }
        }

        public double SoPhatSinh
        {
            get
            {
                return this.mSoPhatSinh;
            }
            set
            {
                this.mSoPhatSinh = value;
            }
        }

        public int SoThangPhanBo
        {
            get
            {
                return this.mSoThangPhanBo;
            }
            set
            {
                this.mSoThangPhanBo = value;
            }
        }

        public string ThangBatDauPhanBo
        {
            get
            {
                return this.mThangBatDauPhanBo;
            }
            set
            {
                this.mThangBatDauPhanBo = value;
            }
        }

        public double TriGiaPhanBo
        {
            get
            {
                return this.mTriGiaPhanBo;
            }
            set
            {
                this.mTriGiaPhanBo = value;
            }
        }

        public double TyGia
        {
            get
            {
                return this.mTyGia;
            }
            set
            {
                this.mTyGia = value;
            }
        }
    }
}

